package cn.edu.ncu.housinghub.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RabbitMQConfig {

    // 聊天消息队列
    public static final String CHAT_MESSAGE_QUEUE = "chat.message.queue";

    @Bean
    public Queue chatMessageQueue() {
        // 持久化队列
        return new Queue(CHAT_MESSAGE_QUEUE, true);
    }
}